<template>
    <div>
        <div class="row">
            <Banner></Banner>
        </div>
        <div class="row">
            <div class="col-xs-2 col-xs-offset-2">
                <div class="list-group">
                    <!--vue中借助router-link标签实现路由的切换 路由写法 -->
                    <router-link class="list-group-item" active-class="active" to="/about">About</router-link>
                    <routerLink class="list-group-item" active-class="active" to="/home">Home</routerLink>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="panel">
                    <div class="panel-body">
                        <!-- 指定组件的呈现位置 -->
                        <router-view></router-view>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import Banner from './components/Banner'
    export default {  //es6暴露方法 export default 默认方法常用
        name:'App',  //告诉vue开发者工具当前组件名字
        components:{
            Banner
        }

    }
</script>